use serde::Deserialize;

const DEFAULT_DATA_DIR: &str = "data";
const DEFAULT_FILE_DIR: &str = "data/files";
const DEFAULT_TEMP_DIR: &str = "temp";

#[derive(Clone, Debug, Deserialize)]
pub struct Storage {
    pub data_dir: String,
    pub file_dir: String,
    pub temp_dir: String,
}

impl Default for Storage {
    fn default() -> Self {
        Self {
            data_dir: DEFAULT_DATA_DIR.into(),
            file_dir: DEFAULT_FILE_DIR.into(),
            temp_dir: DEFAULT_TEMP_DIR.into(),
        }
    }
}
